package com.zhiyou.shop.model;

import java.util.Date;

public class OrderModel {
    private int id;
    private int userId;
    private int addressId;
    private int imageId;
    private int goodsId;
    private Date datetime;
    private int total;
    private String type;
    private String state;
    private String operate;
    private Date createTime;
    private Date updateTime;
    
    //关联字段
    private String title;
    
    private String username;
   
	private String image;
	
	private String spec;
	
	private int realprice;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getAddressId() {
		return addressId;
	}

	public void setAddressId(int addressId) {
		this.addressId = addressId;
	}

	public int getImageId() {
		return imageId;
	}

	public void setImageId(int imageId) {
		this.imageId = imageId;
	}

	public int getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}

	public Date getDatetime() {
		return datetime;
	}

	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getOperate() {
		return operate;
	}

	public void setOperate(String operate) {
		this.operate = operate;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public int getRealprice() {
		return realprice;
	}

	public void setRealprice(int realprice) {
		this.realprice = realprice;
	}

	@Override
	public String toString() {
		return "OrderModel [id=" + id + ", userId=" + userId + ", addressId=" + addressId + ", imageId=" + imageId
				+ ", goodsId=" + goodsId + ", datetime=" + datetime + ", total=" + total + ", type=" + type + ", state="
				+ state + ", operate=" + operate + ", createTime=" + createTime + ", updateTime=" + updateTime
				+ ", title=" + title + ", username=" + username + ", image=" + image + ", spec=" + spec + ", realprice="
				+ realprice + "]";
	}

	
}
